package net.fxug.hokuriku.chocolat.events
{
    import flash.events.Event;

	/**
	 * 画面切り替え関連イベント
	 * 
	 * @author shoito
	 */
    public class ViewChangeEvent extends Event
    {
        /**
         * 前の画面に戻るイベント
         *
         * @eventType backEvent
         */
        public static const BACK:String = "backEvent";

        /**
         * オーディエンスセッション参加イベント
         *
         * @eventType joinEvent
         */
        public static const JOIN:String = "joinEvent";
		
		/**
		 * アプリケーション非表示イベント
		 *
		 * @eventType hideEvent
		 */
		public static const HIDE:String = "hideEvent";
		
		/**
		 * アプリケーション表示イベント
		 *
		 * @eventType showEvent
		 */
		public static const SHOW:String = "showEvent";

        public function ViewChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
        {
            super(type, bubbles, cancelable);
        }

        /**
         * @copy flash.event.Event
         */
        override public function clone():Event
        {
            return new ViewChangeEvent(type, bubbles, cancelable);
        }
    }
}